<?php
require_once 'common/conn.php';

$method = $_GET['method'];

if(isset($method)&&$method=="music"){
    $sql = "SELECT * FROM t_music WHERE status = 1 AND top = 1";    
}else if(isset($method)&&$method=="animation"){
    $sql = "SELECT * FROM t_animation WHERE status = 1 AND top = 1";    
}
$db = new DBC();
$data = $db->fetchData($sql);
echo json_encode($data);
?>
